package com.hzlx.controller;

import com.hzlx.service.UserInfoService;
import com.hzlx.service.impl.UserInfoServiceImpl;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author 86166
 * @version 1.0
 * @description: TODO
 * @date 2023/4/12 18:58
 */
@WebServlet(urlPatterns = "/showFoodInbusiness.do")
public class UserIntoBusinessController extends HttpServlet {
    private static UserInfoService userInfoService = new UserInfoServiceImpl();
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        userInfoService.IntoBusiness(req);
        req.getRequestDispatcher("/pages/user/business_info.jsp").forward(req,resp);
    }
}
